<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
    <#assign base=request.contextPath  />
    <base id="base" href="${base}">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${base}/static/win10/component/layui/css/layui.css" media="all">
   <script>
        var base =  "${base}";
    </script>
</head>
<body>
<br>

<form class="layui-form " action="">
    <input disabled type="hidden" id="id" name="id" value="${shopExamine.id!}" >
    <div class="layui-form-item">
        <label class="layui-form-label">门店电话</label>
        <div class="layui-input-block">
            <input disabled type="text" id="shopTel" name="shopTel" value="${shopExamine.shopTel!}"  autocomplete="off" placeholder="请输入门店电话"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">门店地址</label>
        <div class="layui-input-block">
            <input disabled type="text" id="shopAddress" name="shopAddress" value="${shopExamine.shopAddress!}"  autocomplete="off" placeholder="请输入门店地址"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店主</label>
        <div class="layui-input-block">
            <input disabled type="text" id="shopKeeper" name="shopKeeper" value="${shopExamine.shopKeeper!}"  autocomplete="off" placeholder="请输入店主"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block">
            <input disabled type="text" id="examineStatus" name="examineStatus" value="<#if shopExamine.examineStatus==1>通过</#if><#if shopExamine.examineStatus==2>不通过</#if><#if shopExamine.examineStatus==3>待审核</#if>"  autocomplete="off" placeholder="请输入审核状态 1 通过 2 未通过 3待审核"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份</label>
        <div class="layui-input-block">
            <input disabled type="text" id="identity" name="identity" value="<#if shopExamine.identity==1>个人</#if><#if shopExamine.identity==2>个体商户</#if><#if shopExamine.identity==3>企业</#if> "  autocomplete="off" placeholder="请输入身份 1 个人 2 个体商户 3 企业"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份证反面</label>
        <div class="layui-input-block">
            <img   id="idCardBack"  src="${shopExamine.idCardBack!}" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身份证正面</label>
        <div class="layui-input-block">
            <img   id="idCardJust"  src="${shopExamine.idCardJust!}" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">营业执照</label>
        <div class="layui-input-block">
            <img   id="idCardJust"  src="${shopExamine.businessLicense!}" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店铺类型</label>
        <div class="layui-input-block">
            <input disabled type="text" id="shopType" name="shopType" value="${shopType!}"  autocomplete="off" placeholder="请输入店铺类型"
                   class="layui-input">
        </div>
    </div>

</form>
<div align="center">
    <button type="button" style="background-color: #ff534b" class="layui-btn" id="submit" onclick="editShop(2)">不通过</button>
    <button type="button" style="background-color: #80ff98" class="layui-btn" id="submit" onclick="editShop(1)" >通过</button>
    <button type="button" class="layui-btn"  onclick="javaScript: window.history.go(-1);">返回</button>
</div>
<script src="${base}/static/win10/component/layui/layui.js?t=1"></script>
<script src="${base}/static/win10/js/jquery-1.8.3.min.js?t=1"></script>
<script>
function editShop(flag){
    var formDate = {
        id:$("#id").val(),
        examineStatus: flag
    }
    $.ajax({
        type: "POST",
        url: base+"/admin/shopExamine/editShopExamine",
        data: formDate,
        success: function (data) {
            layer.msg(data.message)
            if (data.code === 10000) {
                window.location.href=base+"/admin/shopExamine/main.html"
            } else {

            }
        }
    });
}
    layui.use(['form', 'layer'], function() {
        var form = layui.form
                , layer = layui.layer;






    });

</script>
</body>
</html>